/**
 * @author Javen 
 * @copyright 2018-09-22 17:31:16 javendev@126.com 
 * @description 自定义组件 
 */

cc.Class({
    extends: cc.Component,
    statics: {
        count: 18,
    },
    start() {
        cc.director.setDisplayStats(false);
        try {
            //获取音效组件
            this._audioClip = cc.find("globalAudio").getComponent("AudioClip");
            this._webSocket = cc.find("webSocket").getComponent("WebSocket");
        } catch (error) {}

    },
    playClickAudio: function () {
        if (this._audioClip) {
            this._audioClip.playClickAudio();
        }
    },
});